package com.wx.mall.sys.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CarriageTemplateReqVO {


    @ApiModelProperty(value = "运费模板编号")
    private Integer id;

    @ApiModelProperty(value = "运费模板名称")
    @NotBlank(message = "运费模板名称不能为空")
    private String name;

    @ApiModelProperty(value = "运费模板费用计算方式 1 按重量计算 2 按件数计算")
    @NotBlank(message = "运费模板费用计算方式不能为空")
    private String pricingModel;

    @ApiModelProperty(value = "运费模板起步重量或起步件数")
    @NotNull(message = "运费模板首重不能为空")
    private Double firstWeight;

    @ApiModelProperty(value = "运费模板起步价")
    @NotNull(message = "运费模板首费不能为空")
    private BigDecimal firstExpense;

    @ApiModelProperty(value = "运费模板续重或续件")
    @NotNull(message = "运费模板续重不能为空")
    private Double extendWeight;

    @ApiModelProperty(value = "运费模板加价")
    @NotNull(message = "运费模板续费不能为空")
    private BigDecimal extendExpense;

    @ApiModelProperty(value = "运费模板地区")
    @NotBlank(message = "运费模板地区不能为空")
    private String region;

}
